package com.fingerth.crawler.bean;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.ArrayList;

public class NovelListBean {

    public NovelListBean() {
        data = new NovelListDataBean();
    }

    /**
     * msg : 成功
     * code : 0
     * data : {"size":3,"data":[{"cover":"http://www.xbiquge.la/files/article/image/25/25831/25831s.jpg","descs":"　　二月二龙抬头，黄河海上有龙渡蛟，呆！ 妖孽哪里跑！女妖精吃道爷一棒！","fictionType":"都市小说","creationTime":1608785513562,"author":"菊于刀","fictionId":"125831","fictionVariableId":1,"updateTime":"2019-07-11 19:10:03","id":24241,"title":"神级小道士"},{"cover":"http://www.xbiquge.la/files/article/image/39/39375/39375s.jpg","descs":"一次偶然的机遇，让他拥有了神秘而强大的血脉；同时也增强了他超乎寻常的医术。 然而面对着如同虎狼般的群敌环伺，他该如何在重重杀机中粉碎敌人的阴谋诡计？ 在人类遭遇到史无前例的浩劫之际，他又该如何力挽狂澜，拯救万民于水火？","fictionType":"都市小说","creationTime":1608826389327,"author":"巨石强文","fictionId":"139375","fictionVariableId":1,"updateTime":"2019-10-31 17:54:10","id":25618,"title":"高能神医"},{"cover":"http://www.xbiquge.la/files/article/image/46/46191/46191s.jpg","descs":"总有那么些人，是无敌的！ 总有那么些事都是可以用钱解决的！ 【叮，恭喜玩家获得本系统提供的宇宙神豪万能服务至尊Vip！】 而我最大梦想就是在我有限的生命里，花完这无限的钱！ 【叮，恭喜玩家获得本系统送出的无限生命加成BUFF！】 而我最后悔的事情，或许就是我投资了这神豪系统。 【叮，恭喜玩家投资成功，获得收益每秒一个亿！】 所以说，太有钱了怎么办？ 无敌秋秋群：⑨0①②⑥⑤⑤⑧①","fictionType":"都市小说","creationTime":1608252693000,"author":"错弦","fictionId":"146191","fictionVariableId":1,"updateTime":"2020-04-10 22:10:49.0","id":6150,"title":"太有钱了怎么办"}],"count":5777,"from":3}
     */

    public String msg;
    public int code;
    public NovelListDataBean data;

//    public void init(@NotNull NovelListBean result) {
//        this.msg = result.msg;
//        this.code = result.code;
//        this.data = result.data;
//    }

//    public void clear() {
//        if (data != null && data.data != null) data.data.clear();
//    }

    public static class NovelListDataBean {
        /**
         * size : 3
         * data : [{"cover":"http://www.xbiquge.la/files/article/image/25/25831/25831s.jpg","descs":"　　二月二龙抬头，黄河海上有龙渡蛟，呆！ 妖孽哪里跑！女妖精吃道爷一棒！","fictionType":"都市小说","creationTime":1608785513562,"author":"菊于刀","fictionId":"125831","fictionVariableId":1,"updateTime":"2019-07-11 19:10:03","id":24241,"title":"神级小道士"},{"cover":"http://www.xbiquge.la/files/article/image/39/39375/39375s.jpg","descs":"一次偶然的机遇，让他拥有了神秘而强大的血脉；同时也增强了他超乎寻常的医术。 然而面对着如同虎狼般的群敌环伺，他该如何在重重杀机中粉碎敌人的阴谋诡计？ 在人类遭遇到史无前例的浩劫之际，他又该如何力挽狂澜，拯救万民于水火？","fictionType":"都市小说","creationTime":1608826389327,"author":"巨石强文","fictionId":"139375","fictionVariableId":1,"updateTime":"2019-10-31 17:54:10","id":25618,"title":"高能神医"},{"cover":"http://www.xbiquge.la/files/article/image/46/46191/46191s.jpg","descs":"总有那么些人，是无敌的！ 总有那么些事都是可以用钱解决的！ 【叮，恭喜玩家获得本系统提供的宇宙神豪万能服务至尊Vip！】 而我最大梦想就是在我有限的生命里，花完这无限的钱！ 【叮，恭喜玩家获得本系统送出的无限生命加成BUFF！】 而我最后悔的事情，或许就是我投资了这神豪系统。 【叮，恭喜玩家投资成功，获得收益每秒一个亿！】 所以说，太有钱了怎么办？ 无敌秋秋群：⑨0①②⑥⑤⑤⑧①","fictionType":"都市小说","creationTime":1608252693000,"author":"错弦","fictionId":"146191","fictionVariableId":1,"updateTime":"2020-04-10 22:10:49.0","id":6150,"title":"太有钱了怎么办"}]
         * count : 5777
         * from : 3
         */

        public int size;
        public int count;
        public int from;
        public ArrayList<NovelItemBean> data;

        public NovelListDataBean() {
            data = new ArrayList<>();
        }
    }

    public static class NovelItemBean implements Serializable {
        /**
         * cover : http://www.xbiquge.la/files/article/image/25/25831/25831s.jpg
         * descs : 　　二月二龙抬头，黄河海上有龙渡蛟，呆！ 妖孽哪里跑！女妖精吃道爷一棒！
         * fictionType : 都市小说
         * creationTime : 1608785513562
         * author : 菊于刀
         * fictionId : 125831
         * fictionVariableId : 1
         * updateTime : 2019-07-11 19:10:03
         * id : 24241
         * title : 神级小道士
         */

        public String cover;
        public String descs;
        public String fictionType;
        public String creationTime;
        public String author;
        public String fictionId;
        //        public String fictionVariableId;
        public String updateTime;
        //        public String id;
        public String title;


//        public String getUpdateTime() {
//            if (!TextUtils.isEmpty(updateTime) && updateTime.length() >= 10) {
//                return updateTime.substring(0, 10);
//            }
//            return "";
//        }

        public NovelItemBean() {

        }

//        public NovelItemBean(NovelHistory history) {
//            this.cover = history.cover;
//            this.descs = history.descs;
//            this.fictionType = history.fictionType;
//            this.creationTime = history.creationTime;
//            this.author = history.author;
//            this.fictionId = history.fictionId + "";
//            this.updateTime = history.updateTime;
//            this.title = history.title;
//
//        }
    }


}
